package com.feng.redis.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@NoArgsConstructor
@AllArgsConstructor
@Data
//org.springframework.data.redis.serializer.SerializationException: Cannot serialize; nested exception is org.springfram
//public class User {
public class User implements Serializable {
    private String name;
    private int age;
}
